package org.longgang.bean;

import java.io.Serializable;

/**
 * education_experience
 * @author 
 */
public class EducationExperience implements Serializable {
    /**
     * 教育经历id
     */
    private Integer eduid;

    /**
     * 用户id
     */
    private Integer userid;

    /**
     * 毕业学校
     */
    private String school;

    /**
     * 学院
     */
    private String college;

    /**
     * 专业
     */
    private String major;

    /**
     * 开始时间
     */
    private String edustarttime;

    /**
     * 结束时间
     */
    private String eduendtime;

    /**
     * 专业描述
     */
    private String edustatement;

    /**
     * 备用
     */
    private String b1;

    /**
     * 备用
     */
    private String b2;

    private static final long serialVersionUID = 1L;

    public Integer getEduId() {
        return eduid;
    }

    public void setEduId(Integer eduid) {
        this.eduid = eduid;
    }

    public Integer getUserId() {
        return userid;
    }

    public void setUserId(Integer userid) {
        this.userid = userid;
    }

    public String getSchool() {
        return school;
    }

    public void setSchool(String school) {
        this.school = school;
    }

    public String getCollege() {
        return college;
    }

    public void setCollege(String college) {
        this.college = college;
    }

    public String getMajor() {
        return major;
    }

    public void setMajor(String major) {
        this.major = major;
    }

    public String getEduStartTime() {
        return edustarttime;
    }

    public void setEduStartTime(String edustarttime) {
        this.edustarttime = edustarttime;
    }

    public String getEduEndTime() {
        return eduendtime;
    }

    public void setEduEndTime(String eduendtime) {
        this.eduendtime = eduendtime;
    }

    public String getEduStatement() {
        return edustatement;
    }

    public void setEduStatement(String edustatement) {
        this.edustatement = edustatement;
    }

    public String getB1() {
        return b1;
    }

    public void setB1(String b1) {
        this.b1 = b1;
    }

    public String getB2() {
        return b2;
    }

    public void setB2(String b2) {
        this.b2 = b2;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        EducationExperience other = (EducationExperience) that;
        return (this.getEduId() == null ? other.getEduId() == null : this.getEduId().equals(other.getEduId()))
            && (this.getUserId() == null ? other.getUserId() == null : this.getUserId().equals(other.getUserId()))
            && (this.getSchool() == null ? other.getSchool() == null : this.getSchool().equals(other.getSchool()))
            && (this.getCollege() == null ? other.getCollege() == null : this.getCollege().equals(other.getCollege()))
            && (this.getMajor() == null ? other.getMajor() == null : this.getMajor().equals(other.getMajor()))
            && (this.getEduStartTime() == null ? other.getEduStartTime() == null : this.getEduStartTime().equals(other.getEduStartTime()))
            && (this.getEduEndTime() == null ? other.getEduEndTime() == null : this.getEduEndTime().equals(other.getEduEndTime()))
            && (this.getEduStatement() == null ? other.getEduStatement() == null : this.getEduStatement().equals(other.getEduStatement()))
            && (this.getB1() == null ? other.getB1() == null : this.getB1().equals(other.getB1()))
            && (this.getB2() == null ? other.getB2() == null : this.getB2().equals(other.getB2()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getEduId() == null) ? 0 : getEduId().hashCode());
        result = prime * result + ((getUserId() == null) ? 0 : getUserId().hashCode());
        result = prime * result + ((getSchool() == null) ? 0 : getSchool().hashCode());
        result = prime * result + ((getCollege() == null) ? 0 : getCollege().hashCode());
        result = prime * result + ((getMajor() == null) ? 0 : getMajor().hashCode());
        result = prime * result + ((getEduStartTime() == null) ? 0 : getEduStartTime().hashCode());
        result = prime * result + ((getEduEndTime() == null) ? 0 : getEduEndTime().hashCode());
        result = prime * result + ((getEduStatement() == null) ? 0 : getEduStatement().hashCode());
        result = prime * result + ((getB1() == null) ? 0 : getB1().hashCode());
        result = prime * result + ((getB2() == null) ? 0 : getB2().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", eduid=").append(eduid);
        sb.append(", userid=").append(userid);
        sb.append(", school=").append(school);
        sb.append(", college=").append(college);
        sb.append(", major=").append(major);
        sb.append(", edustarttime=").append(edustarttime);
        sb.append(", eduendtime=").append(eduendtime);
        sb.append(", edustatement=").append(edustatement);
        sb.append(", b1=").append(b1);
        sb.append(", b2=").append(b2);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }

	public EducationExperience() {
		super();
	}

	public EducationExperience(Integer userid) {
		super();
		this.userid = userid;
	}

	public EducationExperience(Integer userid, String school, String college, String major, String edustarttime,
			String eduendtime, String edustatement) {
		super();
		this.userid = userid;
		this.school = school;
		this.college = college;
		this.major = major;
		this.edustarttime = edustarttime;
		this.eduendtime = eduendtime;
		this.edustatement = edustatement;
	}


    
}